home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Python 1.1 / Demo / scripts / fixcid.py < prev    next >
Encoding:
Python Source  |  1994-10-03  |  8.5 KB  |  12 lines  |  [TEXT/R*ch]

  1. #! /usr/local/bin/python
  2.  
  3. # Perform massive identifier substitution on C source files.
  4. # This actually tokenizes the files (to some extent) so it can
  5. # avoid making substitutions inside strings or comments.
  6. # Inside strings, substitutions are never made; inside comments,
  7. # it is a user option (on by default).
  8. #
  9. # The substitutions are read from one or more files whose lines,
  10. # when not empty, after stripping comments starting with #,
  11. # must contain exactly two words separated by whitespace: the
  12. # old identi